package com.charm.bulkcomponent.api

import com.charm.bulkcomponent.BuildConfig
import com.charm.codes.nethard.RetrofitFactory

/**
 * Created by tools on 2018/1/4.
 */
class FirstServiceManager{
    companion object {
        private var service: FirstService? = null
        @Synchronized
        fun firstService(): FirstService? {
            BuildConfig.BUILD_TYPE
            if (service == null) {
                service = RetrofitFactory.build("http://120.76.205.241:8000").create<FirstService>(FirstService::class.java!!)
            }
            return this!!.service
        }
    }
}